<include file="__THEME__/public_header" />
<link type="text/css" rel="stylesheet" href="{:APP_URL}/_static/login.css">
  <div id="page-wrap">
    <div class="reg-wrap">      
      <!--设置账号-->
      <div class="reg-main">
        <neq name='config.register_type' value='closed'>
        
        <form model-node="normal_form" method="POST" action="{:U('public/Register/doStep1')}" name="ajax_register_form" id="ajax_register_form">
        <input type="hidden" name="other_type" value="{$type}" >
        <input type="hidden" name="oauth_token" value="{$_GET['oauth_token']|t}" >
        <input type="hidden" name="oauth_token_secret" value="{$_GET['oauth_token_secret']|t}" >
        <input type="hidden" name="other_uid" value="{$user.id}" >
        <input type="hidden" name="other_face" value="{$user.userface}" >
        <input type="hidden" name="other_signature" value="{$user.signature}" >
        <div class="article boxShadow">
          <div class="title">
            <dl class="account-links clearfix">
              <dt><img src="{$user.userface}" width="50" height="50"/></dt>
              <dd><h4>欢迎你，{$user.uname}，您的{$typeName}帐号授权成功！</h4><p>接下来完成简单的设置，即可用{$typeName}帐号直接登录。</p></dd>
            </dl>
          </div>
          <dl class="item">
            <dd>
              <div class="form-tt"><i class="text-required">*</i>{:L('PUBLIC_NICKNAME')}：</div>
              <div class="form-row">
                <div style="overflow:hidden;*zoom:1">
                  <input event-node="uname" name="uname" checkurl="{:U('public/Register/isUnameAvailable')}" autocomplete="off" type="text" value="{$user.uname}" />
                </div>
              </div>
            </dd>
            <dd>
              <div class="form-tt"><i class="text-required">*</i>绑定邮箱：</div>
              <div class="form-row" style="z-index:99">
                <input event-node="email" event-args="<if condition="'appoint' eq $config['register_type']">suffix={$config['email_suffix']}</if>" name="email" checkurl="{:U('public/Register/isEmailAvailable')}" autocomplete="off" type="text" value="" />
              </div>
            </dd>
            <dd>
              <div class="form-tt"><i class="text-required">*</i>{:L('PUBLIC_LOGIN_PASSWORD')}：</div>
              <div class="form-row psd">
                              <div style="overflow:hidden;*zoom:1">
                                    <input event-node="password" name="password" type="password" value=""/>
                                    <div model-node="password_weight" class="psw-state-empty">
                                        <div class="progress progress-green-transition"><div class="bar"></div></div>
                                        <div class="txt"><span>{:L('PUBLIC_PASSWORD_WEAK')}</span><span>{:L('PUBLIC_PASSWORD_MIDDLE')}</span><span>{:L('PUBLIC_PASSWORD_STRONG')}</span></div>
                                    </div>
                                </div>
                                <div class="txt-info">密码由字母，数字，符号组成，6-15个字符，区分大小写</div>
              </div>
            </dd>
            <dd>
              <div class="form-tt"><i class="text-required">*</i>{:L('PUBLIC_CONFIRM_PASSWORD')}：</div>
              <div class="form-row">
                <input event-node="repassword" name="repassword" type="password" />
              </div>
            </dd>
            <dd>
              <div class="form-tt"><i class="text-required">*</i>{:L('PUBLIC_GENDER')}：</div>
              <div class="form-row">
                <label><input name="sex" type="radio" class="s-radio" value="1" checked="checked" event-node="radio" event-args="error={:L('PUBLIC_CHOOSE_GENDER')}" />{:L('PUBLIC_MALE')}</label>
                <label><input event-node="radio" type="radio" name="sex" value="2" class="s-radio"  />{:L('PUBLIC_FEMALE')}</label>
              </div>
            </dd>
            <dd>
              <div class="form-tt"><i class="text-required">*</i>地区：</div>
              <div class="form-row">
                <div style="padding:3px 0 0 0;*height:30px;overflow:hidden;*zoom:1;">
                {:W('Area',array('curPro'=>0,'curCity'=>0,'area'=>0,'tpl'=>'selectArea'))}
                </div>
              </div>
            </dd>
            <dd class="mt15">
              <div class="form-tt"></div>
              <div class="form-row actionBtn">
                <a class="btn-register" href="javascript:;" onclick="$('#ajax_register_form').submit();return false;">确定</a>
              </div>
            </dd>
          </dl>
        </div>
        </form>
        <else />
         <div class="item-find-psd"><neq name='config.register_close' value=''>{$config.register_close}</neq></div>
        </neq>
      </div>
    </div>
    </div>
<script src="__THEME__/js/module.form.js"></script>
<include file="__THEME__/public_footer" />